import './index.scss'
import Icon from '@/component/icon'

function Text() {
  return (
    <>
      <div>
        <h1 className="box">测试</h1>
        <h1 className="box2">测试2</h1>
      </div>
      <div>
        <div className="top">top</div>
        <div className="bottom">bottom</div>
      </div>
      <p>
        <svg className="icon" aria-hidden="true">
          {/* 使用时，只需要将此处的 iconbtn_like_sel 替换为 icon 的名称即可*/}
          <use xlinkHref="#iconbtn_like_sel"></use>
        </svg>
      </p>
      <p>
        <Icon
          iconName="iconbtn_like_sel"
          className="zan"
          onClick={() => {
            console.log(123)
          }}></Icon>
      </p>
    </>
  )
}

export default Text
